﻿namespace Utils.UserHelper;

public class RegisterHelper
{
    public static (bool, string) RuleCheck(string? account,string? password)
    {
        if (account == null || account.Length < 5)
            return (false, "账户长度少于5位");
        return password == null || password.Length < 6 ? (false, "密码长度小于6") : (true, "注册成功");
    }
}